<!DOCTYPE html>
<html>
<head>
    <title>Logs for {{ script_name }}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta charset="utf-8">

    <style>
        body { font-family: monospace; white-space: pre;max-width: 900px;margin: 0 auto;  }
        .log-container {
            background-color: #f5f5f5;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            overflow-x: auto;
        }
        .log-header {
            background: white;
            height: 50px;
            line-height: 50px;
            color: #080808;
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            font-size: 18px;
            z-index: 1;
            border-bottom: 1px solid #eeee;
        }
        .flex{display:flex}
        .f1{flex:1}
        .f2{flex:2}
        .flex.fl{justify-content:flex-start}
        .flex.fr{justify-content:flex-end}
        .flex.flr{justify-content:space-between}
        .flex.flr2{justify-content:space-around}
        .flex.flr3{justify-content:center}
        .flex.ft{align-items:flex-start}
        .flex.fb{align-items:flex-end}
        .flex.ftb{align-items:center}
        .flex.ftb2{align-items:stretch;}

        .flex.fdc{flex-direction:column}
        .flex.fdr{flex-direction:row}
        .flex.fww{flex-wrap: wrap;}

        a{
            color: #080808;
            text-decoration: none; 
        }
    </style>
</head>
<body>
    <div class="log-header flex flr2">
        <a href="/">返回</a>
        <div>{{ script_name }}日志查看</div>
        <div>&nbsp;</div>
    </div>
    <div class="log-container">{% for log in logs %}{{ log }}
{% endfor %}</div>
</body>
</html>